package com.wonking.springbootv2.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.wonking.springbootv2.value.AnnoValue;

@RestController
public class IocValueController {

	@Autowired
	private AnnoValue annoValue;
	//@Autowired
	//private BeanUser beanUser;
	
	@GetMapping("/iocvalue")
	public String getValue(){
		//beanUser.getId();
		return annoValue.getName();
	}
	
}
